// stdafx.h 

#if !defined(AFX_STDAFX_H__31F350C3_E438_4075_894B_B38294F06727__INCLUDED_)
#define AFX_STDAFX_H__31F350C3_E438_4075_894B_B38294F06727__INCLUDED_

#define VC_EXTRALEAN		

#include <afxwin.h>         
#include <afxdisp.h>

#include <atlbase.h>

extern CComModule _Module;
#include <atlcom.h>

#include <ObjModel\addauto.h>
#include <ObjModel\appdefs.h>
#include <ObjModel\appauto.h>
#include <ObjModel\blddefs.h>
#include <ObjModel\bldauto.h>
#include <ObjModel\textdefs.h>
#include <ObjModel\textauto.h>
#include <ObjModel\dbgdefs.h>
#include <ObjModel\dbgauto.h>

#include <afxcmn.h>

#ifdef _DEBUG

void GetLastErrorDescription(CComBSTR& bstr);		// In SmartReplace.cpp definiert
#define VERIFY_OK(f) \
	{ \
		HRESULT hr = (f); \
		if (hr != S_OK) \
		{ \
			if (FAILED(hr)) \
			{ \
				CComBSTR bstr; \
				GetLastErrorDescription(bstr); \
				_RPTF2(_CRT_ASSERT, "Object call returned %lx\n\n%S", hr, (BSTR) bstr); \
			} \
			else \
				_RPTF1(_CRT_ASSERT, "Object call returned %lx", hr); \
		} \
	}

#else 

#define VERIFY_OK(f) (f);

#endif 

//
//	--	MACROS
//
#ifdef	_DEBUG
#define	METHOD_NOT_IMPLEMENTED( strMethod ) ::MessageBox( NULL, "Sorry, but the method is not yet implemented!", #strMethod, MB_ICONEXCLAMATION )
#else
#define METHOD_NOT_IMPLEMENTED( strMethod ) 
#endif

//
//	--	INCLUDE DEVSTUDIO INTERFACE WRAPPERS
//
#define		_DSWL_USE_STATIC
#define		_DSWL_NO_AUTO_LINK
#include	<DSWrapLib.h>

//{{AFX_INSERT_LOCATION}}

#endif // !defined(AFX_STDAFX_H__31F350C3_E438_4075_894B_B38294F06727__INCLUDED)
